/**
 * @description 筛选类型处理层
 */
const {
    SuccessModel,
    ErrorModel
} = require('../model/ResModel')

const {
    getTypes
} = require('../services/type')

// const typeList = async () => {
//     let sql = `
//                 select * from typelist 
//     `

//     return listData = await exec(sql)
// }

/**
 * @description 获取筛选类型
 */
async function typeList() {
    const result = await getTypes()
    return new SuccessModel(result)
}

module.exports = {
    typeList
}